package hai.com.android_test.ui;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;

import java.io.File;

import hai.com.android_test.utils.Logger;
import hai.com.android_test.utils.OsUtils;

/**
 * Created by 黄海 on 2017/4/28.
 */

public class MyService extends Service {
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onStart(Intent intent, int startId) {
        super.onStart(intent, startId);
        File appFileDir = OsUtils.getAppFileDir(this);
        if (appFileDir != null) {
            Logger.e("目录=" + appFileDir.getAbsolutePath());
        } else
            Logger.e("目录=" + null);
    }
}
